-- GENERATED SPELL FOR [Ambassador's Honor Guard] --


function spell0_20199(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20199', 619, 1)
end

function Sorts_20199(pUnit, Event)
local choix_sorts_20199 = math.random(0, 0)
if choix_sorts_20199 == 0 then
pUnit:RegisterEvent('spell0_20199', 1, 1)
end
end

function mob20199_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20199', math.random(1500, 3000), 1)
end

function mob20199_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20199_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20199_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20199, 1, 'mob20199_Action')
RegisterUnitEvent(20199, 2, 'mob20199_Leave')
RegisterUnitEvent(20199, 3, 'mob20199_Kill')
RegisterUnitEvent(20199, 4, 'mob20199_Die')
